home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / strategy / tictac2-.000 / tictac2- / tictac2 / tictac2.h < prev    next >
Text File  |  1980-01-04  |  2KB  |  59 lines

  1. /*****************************************************************************.
  2. **  TicTac2:  Simple TicTacToe two-player game against another user or cpu.  **
  3. **  Copyright (c) 1995 Ian Singh                                             **
  4. **                                                                           **
  5. **  This program is free software; you can redistribute it and/or modify it  **
  6. **  under the terms  of the  GNU General Public License as published by the  **
  7. **  Free Software Foundation;  either version 2 of the License, or (at your  **
  8. **  option) any version later.                                               **
  9. **                                                                           **
  10. **  This program is distriubted in the hope that it  will  be  useful,  but  **
  11. **  WITHOUT   ANY   WARRANTY;   without   even   the  implied  warranty  of  **
  12. **  MERCHANTABILITY or FITNESS FOR  A  PARTICULAR  PURPOSE.   See  the  GNU  **
  13. **  General Public License for more details.                                 **
  14. **                                                                           **
  15. **  You should have received a copy of the GNU General Public License along  **
  16. **  with  this  program;   if not,  write  to the Free Software Foundation,  **
  17. **  Inc.,  675 Mass Ave, Cambridge, MA 02139, USA.                           **
  18. **                                                                           **
  19. **  Ian Singh                           Ian Singh                            **
  20. **  am256@freenet.carleton.ca           3G Arnold Dr.                        **
  21. **                                      Nepean, Ontario                      **
  22. **                                      K2H 6V6                              **
  23. .*****************************************************************************/
  24.  
  25. /*
  26. **  nothing here yet...
  27. **
  28. */
  29.  
  30. typedef struct{
  31.   int x,y ;
  32. } pos;
  33.  
  34. typedef struct {
  35.   int status,num;
  36. }  player;
  37.  
  38.  
  39. #define SPACE1 0,0 
  40. #define SPACE2 10,0
  41. #define SPACE3 20,0 
  42.  
  43. #define SPACE4 0,4
  44. #define SPACE5 10,4
  45. #define SPACE6 20,4
  46.  
  47. #define SPACE7 0,8
  48. #define SPACE8 10,8
  49. #define SPACE9 20,8
  50.  
  51. #define I_QUIT 10
  52.  
  53. #define HUMAN_YOU  1
  54. #define HUMAN_THEM 2 
  55. #define CPU        3
  56. #define UNDEFINED  0
  57.  
  58.  
  59.